package com.sdp.khy.baotou.db.khy_transport.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2023-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("khy_transport")
public class KhyTransport extends Model<KhyTransport> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 车辆牌照号
     */
    @TableField("plate_no")
    private String plateNo;

    /**
     * 司机姓名
     */
    @TableField("driver_name")
    private String driverName;

    /**
     * 司机工号
     */
    @TableField("driver_no")
    private String driverNo;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 确认时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("confirm_time")
    private LocalDateTime confirmTime;

    /**
     * 结束时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("end_time")
    private LocalDateTime endTime;

    /**
     * 运输单状态
     */
    @TableField("transport_state")
    private String transportState;
    
    /**
     * 理货员姓名
     */
    @TableField("tally_clerk_name")
    private String tallyClerkName;
    
    /**
     * 理货员
     */
    @TableField("tally_clerk")
    private String tallyClerk;
    
    /**
     * 收件理货员姓名
     */
    @TableField("tally_clerk_shou_name")
    private String tallyClerkShouName;
    
    /**
     * 收件理货员
     */
    @TableField("tally_clerk_shou")
    private String tallyClerkShou;
    
    /**
     * 到达站
     */
    @TableField("end_station")
    private String endStation;
    
    /**
     * 到达站名
     */
    @TableField("end_station_name")
    private String endStationName;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
